<html>
<body>
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    </head>
<?php
    $this->load->helper('form');
    for($i=0;$i<count($rs);$i++)
    {
       echo 'ID: '.$rs[$i]['id_pessoa'].' Nome: '.$rs[$i]['nome'].' Telefone: '.$rs[$i]['telefone'].'<BR>';     
    }
    ?><table>  
<?=form_open('welcome/adicionar_pessoa');?>
        <tr><td>Nome</td></tr>
        <tr><td><input type='text' name='nome'/></td></tr>
        <tr><td>Telefone</td></tr>
        <tr><td><input type='text' name='telefone'/></td></tr>
         <tr><td><input type='submit' value='Cadastrar'/></td></tr>
      
    </table>
<?=form_close();?>
</body>
</html>